package org.lld.im.service.conversation.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.lld.im.service.conversation.dao.ImConversationSetEntity;
import org.springframework.stereotype.Repository;

/**
 * @author: LunBoWang
 * @description: TODO
 * @date: 2025/4/7 下午6:27
 * @version: 1.0
 */
@Mapper
public interface ImConversationSetMapper extends BaseMapper<ImConversationSetEntity> {

    @Update("update im_conversation_set set readed_sequence=#{readedSequence},sequence=#{sequence}"+
    " where conversation_id=#{conversationId} and app_id=#{appId} and readed_sequence<#{readedSequence}")
    public void readMark(ImConversationSetEntity imConversationSetEntity);
}
